/**
 * Created by yoyoyk on 2017/3/8.
 */
import React , {Component}from 'react';
import { Modal, Button } from 'antd';
import Confirm from '../../common/Confirm'

/*业务平台>人员管理>编辑部门*/

export default class UseUser extends React.Component {
    constructor(props){
        super(props);
        this.state = { visible: false }
        this.Style={};
    }

    componentWillMount() {
        this.Style.addpersonview={
            textAlign:"center",
            display:"block",
            border:"3px solid green"
        }
        this.Style.addpersonview.width = 400;
        this.Style.addpersonview.height = 200;
        this.Style.addpersonview.fontSize = 30;

        this.Style.addpersonview={
            width:"634px",
            height:"44px",
            paddingLeft:"18px",
            lineHeight:"44px",
            display:"block",
            background:"#f2f2f2",
            marginBottom:49
        }
    }

    state = { visible: false }
    showModal = () => {
        this.setState({
            visible: true,
        });
    }
    handleOk = (e) => {
        console.log(e);
        this.setState({
            visible: false,
        });
    }
    handleCancel = (e) => {
        console.log(e);
        this.setState({
            visible: false,
        });
    }

    sure(){
        this.setState({
            visible: false,
        });
    }
    cancel (){
        this.setState({
            visible: false,
        });
    }

    render(){
        return (
            <div>
                <Modal visible={this.state.visible} onOk={this.handleOk} onCancel={this.handleCancel} style={{width:"634px",height:"240px",display:"block"}} title={"删除部门"}>
                    <img style={{display:"inlineBlock",marginLeft:150,marginTop:46}} src="./img/warning.png"/>
                    <span style={{position:"absolute",left:237,top:60,fontSize:16}}>确定删除部门吗？</span>
                    <Confirm tcontext="确定" style={{display:"inline",marginTop:166,width:96,height:27,color:"#fff",fontSize:"16px"}} touch={this.sure.bind(this)}/>
                    <Confirm tcontext="取消" style={{display:"inline",position:"absolute",left:309,top:205,marginLeft:20,width:96,height:27,color:"#fff",fontSize:"16px"}} touch={this.cancel.bind(this)}/>
                </Modal>
            </div>
        )
    }
}




